BOOST_EXES = array any \
             chrono \
             foreach fs\
             hash \
             po \
             replace \
             set smart \
             thread time token 
all: $(BOOST_EXES)


any: any.o
	/usr/bin/g++ -o $@ $^

array: array.o
	/usr/bin/g++ -o $@ $^

chrono:chrono.o
	/usr/bin/g++ -o $@ $^ -lboost_chrono -lboost_system

foreach: foreach.o
	/usr/bin/g++ -o $@ $^

fs: fs.o
	/usr/bin/g++ -o $@ $^ -lboost_filesystem -lboost_system

hash:hash.o
	/usr/bin/g++ -o $@ $^

po: po.o
	/usr/bin/g++ -o $@ $^ -lboost_program_options

replace:replace.o
	/usr/bin/g++ -o $@ $^

set:set.o
	g++ -o $@ $^

smart:smart.o
	g++ -o $@ $^

thread: thread.o
	g++ -o $@ $^ -lboost_thread -lboost_system

time:time.o
	g++ -o $@ $^

token:token.o
	g++ -o $@ $^

%.o: %.cpp
	g++ -c $^
clean:
	rm -f $(BOOST_EXES)
	rm -f *.o

